import { Component,Input } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { TopicInfo } from '../../models/quesinfo';
/**
 * Generated class for the QuestionSelectPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */


@Component({
  selector: 'page-question-select',
  templateUrl: 'question-select.html',
})
export class QuestionSelectPage {
  @Input() topic: TopicInfo;@Input() poneSet: Array<any>;
  @Input()
  topicIndex;
  topicIndexshow;
  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }


  ngOnInit(){

    this.topicIndexshow=this.topicIndex+1;
  }
  select($event){
    this.topic["select"] = $event.target.value;
    // //console.log(this.topic["select"])
  }
}
